<cfparam name="ui" type="string" default="orders">
<cfif NOT IsUserLoggedIn()>
	<cfset ui = "login" />
<cfelse>
	<cfinclude template="/assets/csac/com/controller.cfm">
</cfif>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>California Student Aid Commission Publications Admin</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<meta name="description" content="California Student Aid Commission Publications Admin">
		<meta name="author" content="Syntric">
		<cfoutput>
			<link href="#request.mappings.css.local.jquery.ui#" rel="stylesheet" type="text/css" />
			<link href="#request.mappings.css.local.bootstrap.v3#" rel="stylesheet" type="text/css" />
			<!--- <link href="#request.mappings.css.local.kendo.common#" rel="stylesheet" type="text/css" />
			<link href="#request.mappings.css.local.kendo.default#" rel="stylesheet" type="text/css" /> --->
<link href="http://cdn.kendostatic.com/2013.3.1324/styles/kendo.common-bootstrap.min.css" rel="stylesheet">
<link href="http://cdn.kendostatic.com/2013.3.1324/styles/kendo.bootstrap.min.css" rel="stylesheet">
<link href="http://cdn.kendostatic.com/2013.3.1324/styles/kendo.dataviz.min.css" rel="stylesheet">
<link href="http://cdn.kendostatic.com/2013.3.1324/styles/kendo.dataviz.bootstrap.min.css" rel="stylesheet">
			<link href="#request.mappings.css.local.fontawesome.all#" rel="stylesheet" type="text/css" />
			<link href="#request.mappings.css.local.fontawesome.ie7#" rel="stylesheet" type="text/css" />
			<link href="#request.mappings.css.remote.fonts.opensans#" rel="stylesheet" type="text/css" />
			<link href="../common/css/csac.css" rel="stylesheet" type="text/css" />
			<script src="#request.mappings.js.local.misc.holder#" type="text/javascript"></script>
			<!--- <script src="#request.mappings.js.local.jquery.all#" type="text/javascript"></script> --->
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
			<script src="#request.mappings.js.local.jquery.ui#" type="text/javascript"></script>
			<script src="#request.mappings.js.local.bootstrap.v3#" type="text/javascript"></script>
			<!--- <script src="#request.mappings.js.local.kendo.all#" type="text/javascript"></script> --->
<script src="http://cdn.kendostatic.com/2013.3.1324/js/kendo.all.min.js"></script>
<script src="http://cdn.kendostatic.com/2013.3.1324/js/kendo.timezones.min.js"></script>
			<script src="#request.mappings.js.local.misc.respond#" type="text/javascript"></script>
			<script src="#request.mappings.js.local.misc.ie10#" type="text/javascript"></script>
			<script src="#request.mappings.js.local.jquery.validator.validator#" type="text/javascript"></script>
			<script src="#request.mappings.js.local.jquery.validator.additional_methods#" type="text/javascript"></script>
			<script src="../common/js/common.js" type="text/javascript"></script>
		</cfoutput>
		<!--- JIRA Issue Collector --->
		<script type="text/javascript" src="http://jira.syntric.com:8080/s/d41d8cd98f00b204e9800998ecf8427e/en_US0-1988229788/6159/5/1.4.3/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector.js?collectorId=d39efb3d"></script>
		<script type="text/javascript">window.ATL_JQ_PAGE_PROPS =  {
			"triggerFunction": function(showCollectorDialog) {
				jQuery("#issueCollector").click(function(e) {
					e.preventDefault();
					showCollectorDialog();
				});
			}};
		</script>
	</head>
	<body>
		<cfoutput>
			<cfif IsUserLoggedIn()>
				<header class="hidden-print">
					<nav id="adminNav" class="navbar navbar-inverse navbar-static-top" role="navigation">
						<ul class="nav navbar-nav">
							<li><a href="?ui=orders">Orders</a></li>
							<li class="divider-vertical"></li>
							<li><a href="?ui=products">Products</a></li>
							<li class="divider-vertical"></li>
							<li><a href="?ui=productCategories">Product Categories</a></li>
							<li class="divider-vertical"></li>
							<li><a href="?ui=users">Users</a></li>
							<li class="divider-vertical"></li>
							<li><a id="issueCollector" href="##">Submit Ticket</a></li>
							<li class="divider-vertical"></li>
						</ul>
						<ul class="nav navbar-nav navbar-right">
							<li class="dropdown">
								<a href="##" class="dropdown-toggle" data-toggle="dropdown">#request.authUser.getFirst_Name()# #request.authUser.getLast_Name()#&nbsp;<span class="caret"></span></a>
								<ul class="dropdown-menu">
									<li><a href="?ui=user&User_ID=#request.authUser.getUser_ID()#&returnUI=#ui#">Account</a></li>
									<li><a href="?logout">Logout</a></li>
								</ul>
							</li>
						</ul>
					</nav>
				</header>
			</cfif>
			<main style="margin: 0 20px;">
				<cftry>
					<!--- <cfif IsDefined("alert") or IsDefined("alerts")>
						<div class="alert alert-danger alert-dismissable">
							<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
							<h4>Alert</h4>
							<cfif IsDefined("alert")>
								<p>#alert#</p>
							</cfif>
							<cfif IsDefined("alerts") and IsArray(alerts)>
								<ul>
									<cfloop index="a" from="1" to="#ArrayLen(alerts)#">
										<li>#alerts[a]#</li>
									</cfloop>
								</ul>
							</cfif>
						</div>
					</cfif> --->
					<cfif IsDefined("error")>
						<h1>Error</h1>
						<cfdump var="#error#" label="Error Details" expand="yes">
					<cfelse>
						<cfinclude template="/assets/csac/ui/#ui#.cfm">
					</cfif>
					<cfcatch type="missinginclude">
						<h1>Page Not Found</h1>
						<p>The page you have requested could not be found.</p>
					</cfcatch>
				</cftry>
			</main>
		</cfoutput>
	</body>
</html>

